package vip.meeet.base;

/**
 * https://www.runoob.com/java/java-operators.html?_t_t_t=0.3133259497117251
 */
public class OperatorStart {

    private static void op1(){
        int a = 5;
        int b = 6;
        int c = a++ * b / a + b;
        System.out.println(c);//11 = 5 * 6 / 6 + 6
    }

    private static void op2(){
        int sum = 0;
        for(int i=0,j=0;i<5 & j<5;++i,j=i+1){
            sum += i;
        }
        System.out.println(sum);//6
    }

    private static void op3(){
        int x,y=1;
        x = 10;
        if(x != 10 && x / 0 == 0){
            System.out.println(y);
        }else {
            System.out.println(++y);
        }
    }

    public static void main(String[] args) {
        op1();
        op2();
        op3();
    }
}
